package com.wsd.bookkeeping.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;


/**
 * 评论实体类
 */
@TableName("t_comment")
@Data
public class Comment {

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @TableField("user_id")
    @NotNull
    private String userId;

    // 暂未使用
    @TableField(value = "reply_id", select = false)
    private String replyId;

    @TableField("book_id")
    @NotNull
    private String bookId;

    @TableField("comment")
    @NotNull
    private String comment;

    @TableField(value = "create_date", select = false)
    private String createDate;

    @TableField("update_date")
    private String updateDate;

    @TableField(value = "create_ip", select = false)
    private String createIp;

}